import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '../views/home'

import Particulars from '../views/particulars'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'Home',
    component: Home
  },
  {
    path: '/particulars:id',
    name: 'Particulars',
    component: Particulars
  },
  {
    path: '/boiling',
    name: 'Boiling',
    component: () => import(/* webpackChunkName: "boiling" */ '../views/boiling')
  },
  {
    path: '/squares',
    name: 'Squares',
    component: () => import(/* webpackChunkName: "squares" */ '../views/squares')
  },
  {
    path: '/magiclamp',
    name: 'Magiclamp',
    component: () => import(/* webpackChunkName: "magiclamp" */ '../views/magiclamp')
  },
  {
    path: '/edit',
    name: 'Edit',
    component: () => import(/* webpackChunkName: "edit" */ '../views/edit')
  },
  {
    path: '/login',
    name: 'Login',
    component: () => import(/* webpackChunkName: "login" */ '../views/login')
  }
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
